package com.echoesnet.echoesshortvideo.Api;


import com.echoesnet.echoesshortvideo.Api.Response.ResponseResult;
import com.echoesnet.echoesshortvideo.Api.Response.ResponseResultSkeleton;

import java.util.Map;

import io.reactivex.Flowable;
import io.reactivex.Observable;
import retrofit2.http.Body;
import retrofit2.http.FieldMap;
import retrofit2.http.FormUrlEncoded;
import retrofit2.http.POST;
import retrofit2.http.Path;
import retrofit2.http.Url;

public interface CommonQueueService
{
    //@Headers({"Content-Type: application/json","Accept: application/json"})
    @POST("")
    Observable<ResponseResult> postRxBody( @Url String interfaceName, @Body Map<String, Object> reqParamMap);

    //提交一个POST表单
    @FormUrlEncoded
    @POST("queue")
    Observable<ResponseResultSkeleton> postRxString(@FieldMap Map<String, String> reqParamMap);

    //提交一个POST表单
    @FormUrlEncoded
    @POST("queue")
    Flowable<ResponseResultSkeleton> postRx2String(@FieldMap Map<String, String> reqParamMap);
}
